package com.asia5b.a5mall.home.widget

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.LinearLayout
import com.asia5b.a5bmall.same.databinding.GoodsitemHomeBinding
import com.asia5b.a5mall.middleware.model.shop.AbsGoodsModel

/**
 * Created by zhangyuncai on 2020/3/18.
 */
class HomeGoodsItemView @JvmOverloads constructor(
        context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : LinearLayout(context, attrs, defStyleAttr) {
    private val goodsitemHomeBinding: GoodsitemHomeBinding = GoodsitemHomeBinding.inflate(LayoutInflater.from(context),this,true)

    fun setData(item: AbsGoodsModel) {
        goodsitemHomeBinding.item=item

    }
}